
@mixin sca($sca: scale(0.8)) {
  transform: $sca;
  -ms-transform: $sca; /* IE 9 */
  -moz-transform: $sca; /* Firefox */
  -webkit-transform: $sca; /* Safari 和 Chrome */
  -o-transform: $sca; /* Opera */
}
@mixin bgjb($z: #FEA018, $y:#FE8219) {
  background: -webkit-linear-gradient(left, $z, $y);
  /* Safari 5.1 - 6.0 */
  background: -o-linear-gradient(right, $z, $y);
  /* Opera 11.1 - 12.0 */
  background: -moz-linear-gradient(right, $z, $y);
  /* Firefox 3.6 - 15 */
  background: linear-gradient(to right, $z, $y);
  /* 标准的语法 */
}

@mixin bgjbs($z: #70D265, $y:#0EC46A) {
  background: -webkit-linear-gradient($z, $y);
  /* Safari 5.1 - 6.0 */
  background: -o-linear-gradient($z, $y);
  /* Opera 11.1 - 12.0 */
  background: -moz-linear-gradient($z, $y);
  /* Firefox 3.6 - 15 */
  background: linear-gradient($z, $y);
  /* 标准的语法 */
}

@mixin bg($bg: url("../assets/image/tu.jpg")) {
  background: $bg no-repeat;
  background-size: 100% 100%;
}

@mixin wh($h,$w:center) {
  line-height: $h;
  text-align: $w;
}
@mixin ellipsis{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//超出多行显示多行省略号
@mixin multiLineEllipsis($row) {
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $row;
  -webkit-box-orient: vertical;
}

@mixin  flex-wh($w:center,$h:center){
  display: -webkit-flex; /* Safari */
  display: flex;
  justify-content:$w;
  align-items:$h;
}

%flex-box{
  display: -webkit-flex; /* Safari */
  display: flex;
}